//
//  UIView+MHExtension.h
//  MeiHengInvestment
//
//  Created by 刘家俊 on 17/4/24.
//  Copyright © 2017年 Andrew. All rights reserved.
//

/**
 * 获取某个控件的frame origin中的某个值
 */

#import <UIKit/UIKit.h>

@interface UIView (MHExtension)

/* 控件的size */
@property (nonatomic, assign) CGSize mh_size;
/* 控件的宽度 */
@property (nonatomic, assign) CGFloat mh_width;
/* 控件的高度 */
@property (nonatomic, assign) CGFloat mh_height;
/* 控件的x值 */
@property (nonatomic, assign) CGFloat mh_x;
/* 控件的y值 */
@property (nonatomic, assign) CGFloat mh_y;
/* 控件的中心x值 */
@property (nonatomic, assign) CGFloat mh_centerX;
/* 控件的中心Y值 */
@property (nonatomic, assign) CGFloat mh_centerY;
/* 控制件的右边 */
@property (nonatomic, assign) CGFloat mh_right;
/* 控件的底部 */
@property (nonatomic, assign) CGFloat mh_bottom;

/** 加载xib */
+ (instancetype)mh_viewFormXib;

/** 判断是否跟window有重叠 */
- (BOOL)mh_intersectWithView:(UIView *)view;










@end
